package cn.iocoder.yudao.module.promotion.activity.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.AbstractVO;
import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.promotion.activity.enums.PromotionTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Schema(description = "营销活动 Response VO")
@Data
@NoArgsConstructor
public class ActivityVO extends AbstractVO<Long> {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "618 大促")
    private String name;

    @Schema(description = "类型：1-秒杀、2-砍价、3-拼团、4-限时折扣、5-满减", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @InEnumValue(PromotionTypeEnum.class )
    private Integer type;

    @Schema(description = "产品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "618")
    private Long spuId;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime startTime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime endTime;

}
